package com.gmu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采样单位活动表
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SampleUnitsActivities对象", description="采样单位活动表")
public class SampleUnitsActivities implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "采样id")
    @TableId(value = "sample_id", type = IdType.AUTO)
    private Integer sampleId;

    @ApiModelProperty(value = "活动id")
    private Integer activitiesId;

    @ApiModelProperty(value = "采样地点")
    private String sampleAddress;

    @ApiModelProperty(value = "采样人员")
    private String sampleDept;

    @ApiModelProperty(value = "采样开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")//设置查询数据库得到的时间格式，否则是这种格式的 2022-05-29T09:43:52.000+00:00
    private Date sampleBeginTime;

    @ApiModelProperty(value = "采样结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")//设置查询数据库得到的时间格式，否则是这种格式的 2022-05-29T09:43:52.000+00:00
    private Date sampleEndTime;


}
